package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreStockCheckBillEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 库存盘点单 保存对象
 *
 * @author fs 2021-03-09
 */
@Data
@ApiModel("库存盘点单-保存对象")
public class StoreStockCheckBillSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "单号")
    private String billNo;

    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "备注")
    private String checkRemark;

    @ApiModelProperty(value = "审批人")
    private Integer examineUser;

    @ApiModelProperty(value = "取消理由")
    private String cancelReason;

    public StoreStockCheckBillEntity convertEntity() {
        StoreStockCheckBillEntity target = new StoreStockCheckBillEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
